<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://www.springframework.org/tags/form" %>  

<jsp:include page="head.jsp"></jsp:include>
<div class="main">
<h3>用户注册</h3>
<script>
	$(function() {
		$("#del").onclick(function() {
			regsubmit();
		});
	});
	
</script>
 <f:form action="${pageContext.request.contextPath }/reg" method="POST" modelAttribute="person" >
用户名：<f:input path="account" /><f:errors path="account"></f:errors><br>
密码：<f:password path="password"  /><br>
重复密码：<input type="password" name="password2"  ><br>
E_mail：<f:input path="email" /><f:errors path="email"></f:errors><br>

<input type="submit"  id="del" value="注册用户">
${requestScope.msg }
</f:form> 

</div>
</body></html>